#ifndef SINGLE_INT_PARAM_H
#define SINGLE_INT_PARAM_H

#include "Param.h"

class SingleIntParam: public Param {
protected:
	int value;

	int set( int val );
	int get() throw (NotReady);

public:
	SingleIntParam();
	SingleIntParam( const char *name );
	SingleIntParam( SingleIntParam &src );

	void read( Input &input );

	//int operator = (SingleIntParam &val);
	int operator = (int val);
	int operator += (int val)	throw (NotReady);
	int operator -= (int val)	throw (NotReady);
	int operator *= (int val)	throw (NotReady);
	int operator /= (int val)	throw (NotReady);
	int operator ++ ()			throw (NotReady);
	int operator ++ (int)		throw (NotReady);
	int operator -- ()			throw (NotReady);
	int operator -- (int)		throw (NotReady);
	operator int ()				throw (NotReady);
};

#endif